﻿<!DOCTYPE html>
<html lang="en">
<#include "../common/common-head.html"/>
<body class="gray-bg top-navigation">
<div id="wrapper">
    <div id="page-wrapper" class="gray-bg">
    <#include "../common/common-menu.html">
        <div class="wrapper wrapper-content">
            <div class="row white-bg" style="padding: 18px 0">
                <div class="col-xs-12">
                    <div class="form-search">
                        <form role="form" class="form-inline clearfix" id="form" action="">
                            <@search labels=["姓名","科室"] names=["name","dep"] isEnd=true></@search>
                        </form>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover">
                            <thead>
                            <tr>
                                <@tableHead names=["姓名","学历","手机","年龄","性别","电子邮箱","科室","主治方向","备注","操作"]></@tableHead>
                            </tr>
                            </thead>
                            <tbody>
                            <#list pageInfo.list as item>
                            <tr>
                                <@tableBody model=item propMap={"name":"","card":"","phone":"","age":"","gender":"","email":"","dep":"","major":"","remark":""}></@tableBody>
                                <td>
                                    <a href="${basePath}/doctor/order/${item.id}">预约医生</a>

                                    <a href="#" onclick="update2('${item.id}')">发消息</a>
                                </td>
                            </tr>
                            </#list>
                            </tbody>
                        </table>
                    <#include "../common/table-page.html"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" tabindex="-1" role="dialog" id="model2">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title">发送消息</h4>
            </div>
            <form action="/message/add" method="post">

                <div class="modal-body">
                    <input type="hidden" name="userid" id="id2">
                    <div class="form-group">
                        <input class="form-control" name="content" type="text" placeholder="内容">
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    <input type="submit" class="btn btn-primary">
                </div>
            </form>
        </div>
    </div>
</div>

<script>
    function update2(id) {
        $("#id2").val(id);
        $("#model2").modal("show");
    }
</script>
</body>
</html>

